<template>
  <div>
    <h1>hello vue</h1>
    <!-- v-if 会导致组件销毁 -->
    <demo v-if="bool" ></demo>
  </div>
</template>

<script>
import demo from "./components/demo.vue"
export default {
  components: { demo },
  data(){
    return {
      bool: false
    }
  }
}
</script>

<style>

</style>